package com.maserb.monitor.service.schoolConduct;

import com.maserb.monitor.entity.schoolConduct.SchoolConductItemEntity;
import com.maserb.monitor.repository.schoolConduct.SchoolConductItemRepository;
import com.maserb.monitor.service.base.JpaSpecificationService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SchoolConductItemService extends JpaSpecificationService<SchoolConductItemRepository, SchoolConductItemRepository, SchoolConductItemEntity, String> {
    Page<SchoolConductItemEntity> findAll(Pageable pageable ,String name ,String schoolId);

    List<SchoolConductItemEntity> findAll(String name , String schoolId);

    List<SchoolConductItemEntity> findBySchoolId(String schoolId);

    void saveImport(List<SchoolConductItemEntity> list,String schoolId);

}